package com.kgc.personprovider.service;

import com.kgc.basic.util.ResponseMsg;
import com.kgc.personcommon.pojo.Permission;

import java.util.Map;

public interface PermissionService {
    ResponseMsg getAll(Map<String, Object> params);
    ResponseMsg getById(String id);
    ResponseMsg getByPage(Map<String, Object> params);
    ResponseMsg add(Permission permission);
    ResponseMsg update(Permission permission);
    ResponseMsg delete(String id);
    Permission getPermByPath(String purl);
    boolean checkPermission(String name, String purl);
}
